package com.eastcom.collection.distributor

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement
import javax.xml.bind.annotation.XmlRootElement;

//@XmlAccessorType(XmlAccessType.NONE)
//public class MappingRule {
//	@XmlElement(name = "target_zone")
//	TargetZone targetZone
//	@XmlElement(name = "field_zone")
//	FieldZone fieldZone
//	@XmlElement(name = "datatype_zone")
//	DatatypeZone dataTypeZone
//
//	public MappingRule() {
//		super();
//		// TODO 自动生成的构造函数存根
//	}
//}
//
//@XmlAccessorType(XmlAccessType.NONE)
//public class TargetZone{
//	@XmlElement(name = "target")
//	List<Target> targetList
//	
//}
@XmlRootElement(name="act_rule")
@XmlAccessorType(XmlAccessType.NONE)
class ActionRule {
	@XmlElement(name = "event")
	List<Event> eventList
}
@XmlAccessorType(XmlAccessType.NONE)
class Event{
	@XmlAttribute(name = "tid")
	String tid
	@XmlElement(name = "action")
	Action action
}

@XmlAccessorType(XmlAccessType.NONE)
class Action{
	@XmlElement(name = "target")
	List<String> targetList
}
